<!--sidebar-menu-->
<div id="sidebar"><a href="<?php echo site_url($this->config->item('system_manage_path')."welcome");?>" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
  <ul>
    <li<?php if ($menu_name=='welcome'):?> class="active"<?php endif;?>><a href="<?php echo site_url($this->config->item('system_manage_path')."welcome");?>"><i class="icon icon-home"></i> <span>系统首页</span></a> </li>
    <li class="submenu<?php if ($menu_name=='config'):?> active open<?php endif;?>"> <a href="#"><i class="icon icon-list"></i> <span>网站设置</span> </a>
      <ul>
        <li<?php if ($menu_name=='config'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."config");?>">基本设置</a></li> 
      </ul>
    </li>
    <li class="submenu<?php if ($menu_name=='singlepage'):?> active open<?php endif;?>"> <a href="#"><i class="icon icon-list"></i> <span>单页管理</span> </a>
      <ul>
        <li<?php if ($menu_name=='singlepage' and $sub_meun_name=='add'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."singlepage/add");?>">添加单页</a></li> 
        <li<?php if ($menu_name=='singlepage' and $sub_meun_name=='list'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."singlepage");?>">单页管理</a></li>
      </ul>
    </li>
    <li class="submenu<?php if ($menu_name=='channel'):?> active open<?php endif;?>"> <a href="#"><i class="icon icon-list"></i> <span>模块管理</span> </a>
      <ul>
        <li<?php if ($menu_name=='channel' and $sub_meun_name=='add'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."channel/add");?>">添加模块</a></li> 
        <li<?php if ($menu_name=='channel' and $sub_meun_name=='list'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."channel");?>">模块管理</a></li>
      </ul>
    </li>
    <?php foreach ($sidelist as $sidevalue){ ?>
    <li class="submenu<?php if ($menu_name==$sidevalue['en_name']):?> active open<?php endif;?>"> <a href="#"><i class="icon icon-list"></i> <span><?php echo $sidevalue['name']; ?></span> </a>
      <ul>
        <li<?php if ($menu_name==$sidevalue['en_name'] and $sub_meun_name=='category'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."category/".$sidevalue['en_name']);?>">分类管理</a></li> 
        <li<?php if ($menu_name==$sidevalue['en_name'] and $sub_meun_name=='list'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path').$sidevalue['en_name']);?>"><?php echo $sidevalue['sub_name']; ?>管理</a></li>
      </ul>
    </li>
    <?php } ?>
    <li class="submenu<?php if ($menu_name=='user'):?> active open<?php endif;?>"> <a href="#"><i class="icon icon-user"></i> <span>会员管理</span> </a>
      <ul>
        <li<?php if ($menu_name=='user' and $sub_meun_name=='add'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."user/add");?>">添加会员</a></li> 
        <li<?php if ($menu_name=='user' and $sub_meun_name=='list'): ?> class="active"<? endif; ?>><a href="<?php echo site_url($this->config->item('system_manage_path')."user");?>">会员管理</a></li>
      </ul>
    </li>
    <li><a href="<?php echo site_url($this->config->item('system_manage_path')."logout");?>"><i class="icon icon-share-alt"></i> <span>安全退出</span></a> </li>
  </ul>
</div>
<!--sidebar-menu-->